/* eslint-disable */
import request from "@/request";

/** getActiveStoresCount GET /api/api/platform/active-stores */
export async function getActiveStoresCountUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getActiveStoresCountUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseInt_>("/api/api/platform/active-stores", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getTotalCommission GET /api/api/platform/monthly-commission */
export async function getTotalCommissionUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTotalCommissionUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBigdecimal_>(
    "/api/api/platform/monthly-commission",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** getMonthlyIncome GET /api/api/platform/monthly-income */
export async function getMonthlyIncomeUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getMonthlyIncomeUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePlatformMonthlyIncome_>(
    "/api/api/platform/monthly-income",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** calculateMonthlyIncome POST /api/api/platform/monthly-income/calculate */
export async function calculateMonthlyIncomeUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.calculateMonthlyIncomeUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseVoid_>(
    "/api/api/platform/monthly-income/calculate",
    {
      method: "POST",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** getYearlyIncome GET /api/api/platform/yearly-income */
export async function getYearlyIncomeUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getYearlyIncomeUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListPlatformMonthlyIncome_>(
    "/api/api/platform/yearly-income",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
